#import "TitleScreen.h"
#import "State.h"
#import "CharInfo.h"

@implementation TitleScreen

- (id)initWithFrame:(CGRect)frame {
    if ((self = [super initWithFrame:frame])) {
        state=S_TITLE;
        race=CHAR_YINOCH;
	}
	return self;
}
-(void)paintScreen{
    [self.image drawAtPoint:CGPointMake(0.0f,0.0f)];
}

- (void) action:(int)x y:(int) y{
    state=S_PLAY;
}
- (int) stateMachine{
    return state;
}
-(int) getRace{
    return race;
}
-(void)drawRect:(CGRect)rect{
	[super drawRect:rect];
    [self.image drawInRect:rect];
}
@end